package book.service.impl;

import book.dao.chubansheDao;
import book.entity.chubanshe;
import book.service.chubansheServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class chubansheServicesImpl implements chubansheServices {

    @Autowired
     chubansheDao chubansheDao;

    @Override
    public chubanshe getById(int id) {

        return chubansheDao.getById(id);
    }

    @Override
    public List<chubanshe> getAll() {
        return chubansheDao.getAll();
    }
}
